<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<!-- Website template by freewebsitetemplates.com -->

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>Grade Bay</title>
		<link rel="stylesheet" href="gui.css" type="text/css" />
                <script type="text/javascript" src="jquery-latest.pack.js"></script>
                <script type="text/javascript" src="javascript.js"></script>
            
		<!--[if IE 7]>
			<link rel="stylesheet" href="css/ie7.css" type="text/css" />
		<![endif]-->
	</head>
	<body>
		<div class="page">
			<div class="header">
				<a href="index.php" id="logo"><img src="images/gradeBaylogo.png" width="330" height="79" alt=""/></a>
				<ul>
					<li class="selected"><a href="">ADD STUDENT</a></li>
					<li><a href="index.php">HOME</a></li>
					<li><a href="create.php">BACK</a></li>
				</ul>
			</div>
			<div class="body">
                            <div class="addsubject">
					 
                                <?php

                                    /*
                                    * To change this template, choose Tools | Templates
                                    * and open the template in the editor.
                                    */
                                
                                        
                                            if(!isset($_GET['error'])){
                                                $_GET['error']=0;
                                            }

                                            if ($_GET['error']){ //If any errors display them  

                                                $errormsg = $_GET['error'] . ".<br>";
                                                echo "<p style='color:red;'>$errormsg</p>";

                                            }
                                        
                                    ?>
                                
                                <form name='addForm' action='createStudentprofileDB.php' method='post'>
                                        <table id="formTable">
                                            <tr><td><p>Name of Student:</p></td><td><input class='tf_effect' style='padding:0;' maxlength='45' type='text' name='name' onblur=""/></td></tr>
                                            <tr><td><p>Age:</p></td><td><input onkeypress='validate(event)' class='tf_effect' maxlength="2" type="text" name="age"/></td></tr>
                                            <tr><td><p>Grade or Year Level: </p></td> <td><select name="Level">
                                                                         <option value="Grade 1">Grade 1</option>
                                                                         <option value="Grade 2">Grade 2</option>
                                                                         <option value="Grade 3">Grade 3</option>
                                                                         <option value="Grade 4">Grade 4</option>
                                                                         <option value="Grade 5">Grade 5</option>
                                                                         <option value="Grade 6">Grade 6</option>
                                                                         <option value="1st Year">1st Year</option>
                                                                         <option value="2nd Year">2nd Year</option>
                                                                         <option value="3rd Year">3rd Year</option>
                                                                         <option value="4th Year">4th Year</option>
                                                                         </select></td></tr>
                                            <tr><td><p>Gender: </p></td> <td><select name="gender">
                                                                         <option value="Male">Male</option>
                                                                         <option value="Female">Female</option>        
                                                                         </select></td></tr>
                                            <tr><td><p>Address: </p></td> <td><textarea maxlength='300' class='tf_effectAddress' rows="4" cols="50" name="address"></textarea></td></tr>
                                            <tr><td><p>Contact Numbers:</p></td><td><input onkeypress='validate(event)' class='tf_effect' maxlength="11" type="text" name="contact[]" /></td></tr>
                                            <tr><td></td><td><input onkeypress='validate(event)' class='tf_effect' maxlength="11" type="text" name="contact[]" /></td></tr>
                                            <input type="hidden" name="submitted" value="1">
                                         </table>
                                         <br/><br/><center><input type="submit" id="addstudent" class="addmore" value="Add Student" name="addStudent"/></center>
                                         </form>
				
                            </div>
			</div>
			<div class="footer">
				
				<p>&#169; Copyright &#169; 2011. Company name all rights reserved</p>
				<div class="connect">
					<a href=""><img src="images/paragox.png" width=160" height="110" alt=""/></a>
					<a href=""><img src="images/fblogo.png" width=120" height="100" alt="" style="position:relative; left:-31px"/></a>
					<a href=""><img src="images/harmony.png" width=120" height="100" alt="" style="position:relative; left:0px"/></a>
				</div>
			</div>
		</div>
	</body>
</html>  